package com.ruoyi.system.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户对象 l_guest
 *
 * @author zyb
 * @date 2022-01-02
 */

@Data
public class LGuest extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "gid", type = IdType.AUTO)
    private Long gid;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 客户 */
    @Excel(name = "客户")
    private String name;

    /** 区域ID */
    @Excel(name = "区域ID")
    private Long areaid;

    /** 业务员ID */
    @Excel(name = "业务员ID")
    private Long empid;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contractor;

    /** 联系人手机 */
    @Excel(name = "联系人手机")
    private String phone;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 联系人固话 */
    @Excel(name = "联系人固话")
    private String tel;

    /** 客户链接 */
    @Excel(name = "客户链接")
    private String url;

    /** 司机ID */
    @Excel(name = "司机ID")
    private Long driverid;

    /** 授信额度 */
    @Excel(name = "授信额度")
    private BigDecimal creditamount;

    /** 账户余额 */
    @Excel(name = "账户余额")
    private BigDecimal amount;

    /** 停用 */
    @Excel(name = "停用")
    private Integer closed;


    private Long userid;
    @TableField(exist = false)
    private String userName;

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("gid", gid)
                .append("code", code)
                .append("name", name)
                .append("areaid", areaid)
                .append("empid", empid)
                .append("contractor", contractor)
                .append("phone", phone)
                .append("address", address)
                .append("tel", tel)
                .append("url", url)
                .append("driverid", driverid)
                .append("creditamount", creditamount)
                .append("amount", amount)
                .append("closed", closed)
                .append("userid", userid)
                .toString();
    }
}
